package com.ruoyi.project.outpatient.controller;

import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.project.outpatient.domain.Doctor;
import com.ruoyi.project.outpatient.service.DoctorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/outpatient/doctor")
public class DoctorController extends BaseController {

    @Autowired
    private DoctorService doctorService;
    /**
     * 获取患者选择框列表
     */
    @GetMapping("/list6")
    public AjaxResult selectDoctorList()
    {
        List<Doctor> doctors = doctorService.selectDoctorList();
        return AjaxResult.success(doctors);
    }
}
